package cc.lj.internal.coupons.infrastructure.repository;

import cc.lj.internal.core.model.PageParam;
import cc.lj.internal.coupons.domain.ticket.repository.ITicketPayRecordRepository;
import cc.lj.internal.coupons.infrastructure.po.TicketPayRecordPO;
import cc.lj.internal.coupons.infrastructure.repository.mysql.TicketPayRecordMysqlRespository;
import com.github.pagehelper.PageInfo;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;


/**
 * 合同收券表仓储实现
 * @author liangxifeng
 * @date 2021-12-11
 */
@Repository("ticketPayRecordRepository")
public class TicketPayRecordRepository implements ITicketPayRecordRepository {
    @Resource(name="ticketPayRecordMysqlRespository")
    private TicketPayRecordMysqlRespository repository;


    @Override
    public Integer updateById(TicketPayRecordPO entityPO) {
        return repository.updateById(entityPO);
    }


    @Override
    public PageInfo<TicketPayRecordPO> selectPage(PageParam pageParam) {
        return repository.selectPage(pageParam);
    }

    @Override
    public List<TicketPayRecordPO> getList(TicketPayRecordPO activityBatchRationPO) {
        return repository.getList(activityBatchRationPO);
    }

    @Override
    public Integer insert(TicketPayRecordPO ticketPayRecordPO) {
        return repository.insert(ticketPayRecordPO);
    }
}
